<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>Steps 步骤条 | MyUI 4.x</title>
    <meta name="generator" content="VuePress 1.7.1">
    <link rel="icon" href="/my/favicon.ico">
    <script>
      var _hmt = _hmt || [];
      (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?c4e5f73318b5cb0c389e3d9a05f831cc";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();
    </script>
    <meta name="description" content="MyUI是美亚柏科旗下新德汇出品的Web前端一站式项目工程框架，专注于公检法行业中台系统快速搭建，框架已在多个项目实战检验。">
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Expires" content="0">
    
    <link rel="preload" href="/my/assets/css/0.styles.82a18d97.css" as="style"><link rel="preload" href="/my/assets/js/app.fc4964fc.js" as="script"><link rel="preload" href="/my/assets/js/513.edb84f11.js" as="script"><link rel="preload" href="/my/assets/js/1362.385bf93f.js" as="script"><link rel="preload" href="/my/assets/js/958.935c6658.js" as="script">
    <link rel="stylesheet" href="/my/assets/css/0.styles.82a18d97.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/my/" class="home-link router-link-active"><img src="/my/img/logo.png" alt="MyUI 4.x" class="logo"> <span class="site-name can-hide">MyUI 4.x</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/my/guide/" class="nav-link">
  指南
</a></div><div class="nav-item"><a href="/my/ui/components/" class="nav-link">
  组件
</a></div><div class="nav-item"><a href="/my/ui/charts/" class="nav-link">
  图表
</a></div><div class="nav-item"><a href="/my/ui/map/" class="nav-link">
  地图
</a></div><div class="nav-item"><a href="/my/ui/go/" class="nav-link">
  关系图
</a></div><div class="nav-item"><a href="/my/ui/icon/" class="nav-link">
  图标
</a></div><div class="nav-item"><a href="/my/ui/pages/" class="nav-link">
  页面
</a></div><div class="nav-item"><a href="http://newgateway.gitee.io/my-web/" target="_blank" rel="noopener noreferrer" class="nav-link external">
  演示
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="JSDoc" class="dropdown-title"><span class="title">JSDoc</span> <span class="arrow down"></span></button> <button type="button" aria-label="JSDoc" class="mobile-dropdown-title"><span class="title">JSDoc</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/my/api/components.html" class="nav-link">
  基础组件
</a></li><li class="dropdown-item"><!----> <a href="/my/api/utils.html" class="nav-link">
  工具函数
</a></li><li class="dropdown-item"><!----> <a href="/my/api/charts.html" class="nav-link">
  图表组件
</a></li><li class="dropdown-item"><!----> <a href="/my/api/map.html" class="nav-link">
  地图组件
</a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/my/guide/" class="nav-link">
  指南
</a></div><div class="nav-item"><a href="/my/ui/components/" class="nav-link">
  组件
</a></div><div class="nav-item"><a href="/my/ui/charts/" class="nav-link">
  图表
</a></div><div class="nav-item"><a href="/my/ui/map/" class="nav-link">
  地图
</a></div><div class="nav-item"><a href="/my/ui/go/" class="nav-link">
  关系图
</a></div><div class="nav-item"><a href="/my/ui/icon/" class="nav-link">
  图标
</a></div><div class="nav-item"><a href="/my/ui/pages/" class="nav-link">
  页面
</a></div><div class="nav-item"><a href="http://newgateway.gitee.io/my-web/" target="_blank" rel="noopener noreferrer" class="nav-link external">
  演示
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="JSDoc" class="dropdown-title"><span class="title">JSDoc</span> <span class="arrow down"></span></button> <button type="button" aria-label="JSDoc" class="mobile-dropdown-title"><span class="title">JSDoc</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/my/api/components.html" class="nav-link">
  基础组件
</a></li><li class="dropdown-item"><!----> <a href="/my/api/utils.html" class="nav-link">
  工具函数
</a></li><li class="dropdown-item"><!----> <a href="/my/api/charts.html" class="nav-link">
  图表组件
</a></li><li class="dropdown-item"><!----> <a href="/my/api/map.html" class="nav-link">
  地图组件
</a></li></ul></div></div> <!----></nav>  <ul class="sidebar-links"><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>Basic</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>Form</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>Data</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>Notice</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading open"><span>Navigation</span> <span class="arrow down"></span></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/my/element/breadcrumb.html" class="sidebar-link">Breadcrumb 面包屑</a></li><li><a href="/my/element/dropdown.html" class="sidebar-link">Dropdown 下拉菜单</a></li><li><a href="/my/element/menu.html" class="sidebar-link">NavMenu 导航菜单</a></li><li><a href="/my/element/page-header.html" class="sidebar-link">PageHeader 页头</a></li><li><a href="/my/element/steps.html" aria-current="page" class="active sidebar-link">Steps 步骤条</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/my/element/steps.html#基础用法" class="sidebar-link">基础用法</a></li><li class="sidebar-sub-header"><a href="/my/element/steps.html#含状态步骤条" class="sidebar-link">含状态步骤条</a></li><li class="sidebar-sub-header"><a href="/my/element/steps.html#有描述的步骤条" class="sidebar-link">有描述的步骤条</a></li><li class="sidebar-sub-header"><a href="/my/element/steps.html#居中的步骤条" class="sidebar-link">居中的步骤条</a></li><li class="sidebar-sub-header"><a href="/my/element/steps.html#带图标的步骤条" class="sidebar-link">带图标的步骤条</a></li><li class="sidebar-sub-header"><a href="/my/element/steps.html#竖式步骤条" class="sidebar-link">竖式步骤条</a></li><li class="sidebar-sub-header"><a href="/my/element/steps.html#简洁风格的步骤条" class="sidebar-link">简洁风格的步骤条</a></li><li class="sidebar-sub-header"><a href="/my/element/steps.html#steps-attributes" class="sidebar-link">Steps Attributes</a></li><li class="sidebar-sub-header"><a href="/my/element/steps.html#step-attributes" class="sidebar-link">Step Attributes</a></li><li class="sidebar-sub-header"><a href="/my/element/steps.html#step-slot" class="sidebar-link">Step Slot</a></li></ul></li><li><a href="/my/element/tabs.html" class="sidebar-link">Tabs 标签页</a></li></ul></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>Others</span> <span class="arrow right"></span></p> <!----></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="steps-步骤条"><a href="#steps-步骤条" class="header-anchor">#</a> Steps 步骤条</h1> <p>引导用户按照流程完成任务的分步导航条，可根据实际应用场景设定步骤，步骤不得少于 2 步。</p> <h2 id="基础用法"><a href="#基础用法" class="header-anchor">#</a> 基础用法</h2> <p>简单的步骤条。</p> <!----><h2 id="含状态步骤条"><a href="#含状态步骤条" class="header-anchor">#</a> 含状态步骤条</h2> <p>每一步骤显示出该步骤的状态。</p> <!----><h2 id="有描述的步骤条"><a href="#有描述的步骤条" class="header-anchor">#</a> 有描述的步骤条</h2> <p>每个步骤有其对应的步骤状态描述。</p> <!----><h2 id="居中的步骤条"><a href="#居中的步骤条" class="header-anchor">#</a> 居中的步骤条</h2> <p>标题和描述都将居中。</p> <!----><h2 id="带图标的步骤条"><a href="#带图标的步骤条" class="header-anchor">#</a> 带图标的步骤条</h2> <p>步骤条内可以启用各种自定义的图标。</p> <!----><h2 id="竖式步骤条"><a href="#竖式步骤条" class="header-anchor">#</a> 竖式步骤条</h2> <p>竖直方向的步骤条。</p> <!----><h2 id="简洁风格的步骤条"><a href="#简洁风格的步骤条" class="header-anchor">#</a> 简洁风格的步骤条</h2> <p>设置 <code>simple</code> 可应用简洁风格，该条件下 <code>align-center</code> / <code>description</code> / <code>direction</code> / <code>space</code> 都将失效。</p> <!----><h2 id="steps-attributes"><a href="#steps-attributes" class="header-anchor">#</a> Steps Attributes</h2> <table><thead><tr><th>参数</th> <th>说明</th> <th>类型</th> <th>可选值</th> <th>默认值</th></tr></thead> <tbody><tr><td>space</td> <td>每个 step 的间距，不填写将自适应间距。支持百分比。</td> <td>number / string</td> <td>—</td> <td>—</td></tr> <tr><td>direction</td> <td>显示方向</td> <td>string</td> <td>vertical/horizontal</td> <td>horizontal</td></tr> <tr><td>active</td> <td>设置当前激活步骤</td> <td>number</td> <td>—</td> <td>0</td></tr> <tr><td>process-status</td> <td>设置当前步骤的状态</td> <td>string</td> <td>wait / process / finish / error / success</td> <td>process</td></tr> <tr><td>finish-status</td> <td>设置结束步骤的状态</td> <td>string</td> <td>wait / process / finish / error / success</td> <td>finish</td></tr> <tr><td>align-center</td> <td>进行居中对齐</td> <td>boolean</td> <td>-</td> <td>false</td></tr> <tr><td>simple</td> <td>是否应用简洁风格</td> <td>boolean</td> <td>-</td> <td>false</td></tr></tbody></table> <h2 id="step-attributes"><a href="#step-attributes" class="header-anchor">#</a> Step Attributes</h2> <table><thead><tr><th>参数</th> <th>说明</th> <th>类型</th> <th>可选值</th> <th>默认值</th></tr></thead> <tbody><tr><td>title</td> <td>标题</td> <td>string</td> <td>—</td> <td>—</td></tr> <tr><td>description</td> <td>描述性文字</td> <td>string</td> <td>—</td> <td>—</td></tr> <tr><td>icon</td> <td>图标</td> <td>传入 icon 的 class 全名来自定义 icon，也支持 slot 方式写入</td> <td>string</td> <td>—</td></tr> <tr><td>status</td> <td>设置当前步骤的状态，不设置则根据 steps 确定状态</td> <td>wait / process / finish / error / success</td> <td>-</td> <td></td></tr></tbody></table> <h2 id="step-slot"><a href="#step-slot" class="header-anchor">#</a> Step Slot</h2> <table><thead><tr><th>name</th> <th>说明</th></tr></thead> <tbody><tr><td>icon</td> <td>自定义图标</td></tr> <tr><td>title</td> <td>自定义标题</td></tr> <tr><td>description</td> <td>自定义描述性文字</td></tr></tbody></table></div> <footer class="page-edit"><!----> <!----></footer> <div class="page-nav"><p class="inner"><span class="prev">
      ←
      <a href="/my/element/page-header.html" class="prev">
        PageHeader 页头
      </a></span> <span class="next"><a href="/my/element/tabs.html">
        Tabs 标签页
      </a>
      →
    </span></p></div> </main></div><div class="global-ui"></div></div>
    <script src="/my/assets/js/app.fc4964fc.js" defer></script><script src="/my/assets/js/513.edb84f11.js" defer></script><script src="/my/assets/js/1362.385bf93f.js" defer></script><script src="/my/assets/js/958.935c6658.js" defer></script>
  </body>
</html>
